home *** CD-ROM | disk | FTP | other *** search
- from PSPApp import *
-
- def ScriptProperties():
- return {
- 'Author': u'Erich Tran',
- 'Copyright': u'',
- 'Description': u'',
- 'Host': u'Paint Shop Pro',
- 'Host Version': u'8.10'
- }
-
- def Preset_HistogramAdjustment():
- return {
- 'LuminanceChannel': {
- 'Appearance': 0,
- 'Gamma': 0.91,
- 'HighClipLimit': 198,
- 'HighClipLimitPercentage': None,
- 'LowClipLimit': 0,
- 'LowClipLimitPercentage': None,
- 'MaxOutput': 255,
- 'MinOutput': 0
- },
- 'RedChannel': {
- 'Appearance': 0,
- 'Gamma': 1,
- 'HighClipLimit': 225,
- 'HighClipLimitPercentage': None,
- 'LowClipLimit': 0,
- 'LowClipLimitPercentage': None,
- 'MaxOutput': 255,
- 'MinOutput': 0
- },
- 'GreenChannel': {
- 'Appearance': 0,
- 'Gamma': 1.03,
- 'HighClipLimit': 240,
- 'HighClipLimitPercentage': None,
- 'LowClipLimit': 0,
- 'LowClipLimitPercentage': None,
- 'MaxOutput': 255,
- 'MinOutput': 0
- },
- 'BlueChannel': {
- 'Appearance': 0,
- 'Gamma': 0.92,
- 'HighClipLimit': 255,
- 'HighClipLimitPercentage': None,
- 'LowClipLimit': 0,
- 'LowClipLimitPercentage': None,
- 'MaxOutput': 255,
- 'MinOutput': 0
- },
- 'TargetChannel': 0,
- 'OverlayResultHistogram': App.Constants.Boolean.true,
- 'HistogramEditMode': App.Constants.HistogramEditMode.Color
- }
-
- def Do(Environment):
- # Histogram Adjustment
- App.Do( Environment, 'HistogramAdjustment', Preset_HistogramAdjustment())
-
-